/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package optinsa;

/**
 *
 * @author falxa
 */
public class Ressource {
    
    private int id;
    private int freeIn;
    
    public Ressource(int i)
    {
        this.id = i;
        this.freeIn = 0;
    }
    
    public int getID()
    {
        return this.id;
    }
    
    public void useRessource(int f)
    {
        this.freeIn = f;
    }
     
    public String toString()
    {
        return ""+id;
    }
    
    public int isFreeIn()
    {
        return this.freeIn;
    }
    
}
